package com.zyh.kaoshi.test2;

/**
 * @Author zyh
 * @Date 2024/8/10 11:21
 * @Description
 */

public class Num implements Runnable{

    private Printer printer;

    public Num(Printer printer) {
        this.printer = printer;
    }

    @Override
    public void run() {
        for (int i = 1; i < 53; i++) {
            printer.printNum(i);
        }
    }
}
